using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using TMS.Domain.Entity;
using TMS.Infrastructrue.Persistence.Configuration.Base;

namespace TMS.Infrastructrue.Persistence.Configuration
{
    public class StuUsersConfiguration : BaseEntityConfiguration<StuUsers>
    {

        public override void Configure(EntityTypeBuilder<StuUsers> builder)
        {
            base.Configure(builder);

            
            builder.ToTable("stu_users");

            builder.Property(x=>x.UserId).HasColumnName("user_id").HasMaxLength(200000).HasColumnOrder(1);
            builder.Property(x=>x.PassWord).HasColumnName("password").HasMaxLength(200000).HasColumnOrder(2);
            builder.Property(x=>x.AvatarId).HasColumnName("avatar_id").HasMaxLength(200000).HasColumnOrder(3);
        }

    }
}